package com.vitabuybuy.tv.ui.mine.adapter

import androidx.recyclerview.widget.RecyclerView
import com.vitabuybuy.tv.R
import com.vitabuybuy.tv.databinding.ItemFootPrintBinding
import com.vitabuybuy.tv.dto.MyFootPrintListDto
import com.library.common.base.BindRecycAdapter

class FootPrintAdapter :BindRecycAdapter<ItemFootPrintBinding, MyFootPrintListDto.FootprintListBean>(){
    override fun onBindViewHolder(
        mBinding: ItemFootPrintBinding,
        itemData: MyFootPrintListDto.FootprintListBean,
        holder: RecyclerView.ViewHolder,
        position: Int
    ) {
        mBinding.itemData = itemData
        mBinding.btnDelete.setOnClickListener {
            onClickChlidDelete.invoke(position)
        }
    }

    lateinit var onClickChlidDelete :(position :Int)->Unit

    override fun normalViewId(viewType: Int): Int {
        return R.layout.item_foot_print
    }
}
